package com.fortune.service.impl;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fortune.dao.DSelectDao;
import com.fortune.service.DSelectService;
import com.fortune.vo.dSelect.DSelectProduct;
import com.fortune.vo.dSelect.MDiscount;
@Service
public class DSelectServiceImpl implements DSelectService {
	@Autowired
	private DSelectDao dSelectDao;

	@Override
	public List<DSelectProduct> listStoreProduncts(String dId, String storeId) {
		return dSelectDao.listStoreProduncts(dId, storeId);
	}

	@Override
	public List<DSelectProduct> listStoreProdunctCS(String mid, String storeId) {
		return dSelectDao.listStoreProdunctCS(mid, storeId);
	}

	@Override
	public List<DSelectProduct> listProductByDId(String dId) {
		return dSelectDao.listProductByDId(dId);
	}

	@Override
	public MDiscount getDiscountByMIdAndId(String mId, String id) {
		return dSelectDao.getDiscountByMIdAndId(mId, id);
	}

	@Override
	public BigDecimal getBoxPriceByMIdAndId(String mId, String id) {
		return dSelectDao.getBoxPriceByMIdAndId(mId,id);
	}

	@Override
	public BigDecimal getBoxPriceByDIdAndId(String dId, String id) {
		return dSelectDao.getBoxPriceByDIdAndId(dId,id);
	}

}
